<?php //debug($alumnoParalelo);     ?>
<?php //debug($nivel);    ?>
<div class="row-fluid">
   <div class="span6">
   <h3 class="heading">Planes de pago del alumno <?php echo $planes[0]['Alumno']['ap_paterno'] ?> <?php echo $planes[0]['Alumno']['ap_materno'] ?> <?php echo $planes[0]['Alumno']['nombre'] ?></h3>
<table class="table table-striped table-bordered table-condensed">
    <thead>
        <tr>
            <th>Item</th>
            <th>Plan</th>
            <th>Gestion</th>  
            <th>acciones</th>                    
        </tr>
    </thead>
    <tbody>
       <?php foreach($planes as $plan): ?>
          <tr>
          <?php 
          $id = $plan['AlumnosPlanespago']['id'];
          $idAlumno = $plan['Alumno']['id'];
          ?>
          
            <td><?php echo  $id?></td>
            <td><?php echo $plan['Planespago']['nombre'] ?></td>
            <td><?php echo $plan['AlumnosPlanespago']['gestion'] ?></td>
            <td>
            <?php
                            echo $this->Ajax->link(
                                    $this->Html->image("iconos/detalle.png"), 
                                    array( 
                                        'action' => 'editarplanalumno', $id, $idAlumno
                                    ), 
                                    array(
                                        'update' => 'cargaDatos',
                                        'title' => 'Editar plan',
                                        'escape' => false
                                   )
                            );
                            ?>
            </td>
          </tr>
       <?php endforeach; ?>
    
</table>

   </div>
   <div class="span6">
            <div id="cargaDatos">
                Seleccione una accion
			</div>
</div>
<!-- sidebar -->
<?php echo $this->element('sidebar/alumno'); ?>
<!-- fin sidebar -->
<?php //llamamos scripts tablas  ?>
<?php echo $this->element('jstablas'); ?>
<?php //llamamos scripts tablas ?>
<?php echo $this->element('jsformularios'); ?>
     
